package com.shilei.builder;

/**
 * @description:  一个复杂的类 地图类
 * @author: 81271
 * @date: 2020-04-22 19:38
 */
public class Terrain {
    Wall wall;
    Lawn lawn;
    River river;

}

class Wall {
    private int x,y,h,w;

    public Wall(int x, int y, int h, int w) {
        this.x = x;
        this.y = y;
        this.h = h;
        this.w = w;
    }
}

class Lawn {
    private int x,y,h,w;

    public Lawn(int x, int y, int h, int w) {
        this.x = x;
        this.y = y;
        this.h = h;
        this.w = w;
    }
}

class River {
    private int x,y,h,w;

    public River(int x, int y, int h, int w) {
        this.x = x;
        this.y = y;
        this.h = h;
        this.w = w;
    }
}
